﻿<UserControl x:Class="P2.Cuberry.Modules.Framework.EventTracker.EventTrackerFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Margin="0" MinWidth="230" MinHeight="250" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="250" d:DesignWidth="300">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>     
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>

    <Grid Keyboard.KeyDown="Control_KeyDown">

        <Grid.Resources>
            <Image x:Key="FindIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.EventTracker;component/Images/find16.gif" />
            <Image x:Key="ClearIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.EventTracker;component/Images/clear.png" />
            <Image x:Key="AddIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.EventTracker;component/Images/add.png" />
        </Grid.Resources>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="28"/>
            <RowDefinition Height="4" />
            <RowDefinition Height="218*" />
        </Grid.RowDefinitions>


        <Menu Grid.Column="0" Grid.Row="0" x:Name="menuMain" Height="25" VerticalAlignment="Top" Background="{DynamicResource MyBlueBackgroundGradientBrush}" >
            <MenuItem x:Name="btnEventTrackerFind" Margin="2,4,0,2"  Header="{Translate EventTrackerFind}" x:Uid="btnEventTrackerFind" Command="{Binding EventTrackerFindCommand}" Icon="{StaticResource FindIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>            
            <MenuItem x:Name="btnEventTrackerClr" Margin="2,4,0,2"  Header="{Translate EventTrackerClr}" x:Uid="btnEventTrackerClr" Command="{Binding EventTrackerClrCommand}"  Icon="{StaticResource ClearIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>            
            <MenuItem x:Name="btnEventTrackerAdd" Margin="2,4,0,2"   Header="{Translate EventTrackerAdd}" x:Uid="btnEventTrackerAdd" Command="{Binding EventTrackerAddCommand}"  Icon="{StaticResource AddIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
        </Menu>

        <Label Grid.Row="2" Height="23" Margin="1,10,0,0" Name="MachineNameL" HorizontalAlignment="Left" Width="86" Tag="SxL" VerticalAlignment="Top"  Content="{Translate MachineNameL}"></Label>
        <ComboBox Grid.Row="2" Margin="90,10,9,0" Name="MachineName" SelectedValuePath="MachineName" DisplayMemberPath="MachineName" ItemsSource="{Binding MachineNames}"
                  SelectedValue="{Binding MachineName}" Style="{StaticResource P2ComboBoxStyle}" Height="23" VerticalAlignment="Top" />
       
        <Label Grid.Row="2" Height="23" Margin="1,40,0,0" Name="SeverityL" HorizontalAlignment="Left" Width="86" Tag="SxL" VerticalAlignment="Top"  Content="{Translate SeverityL}"></Label>
        <ComboBox Grid.Row="2" Margin="90,40,9,0" Name="Severity" SelectedValuePath="Severity" DisplayMemberPath="Severity" ItemsSource="{Binding Severitys}"
                  SelectedValue="{Binding Severity}" Style="{StaticResource P2ComboBoxStyle}" Height="23" VerticalAlignment="Top" />

        <Label Grid.Row="2" Height="23" Margin="1,70,0,0" Name="PriorityL"  VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL" Content="{Translate PriorityL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="90,70,8,0" Name="Priority"  Text="{Binding Model.Priority}" VerticalAlignment="Top" Tag="SxText" Style="{StaticResource P2TextBoxStyle}" />

        
        <Label Grid.Row="2" Height="23" Margin="1,100,0,0" Name="MessageL" HorizontalAlignment="Left" Width="86" Tag="SxL" VerticalAlignment="Top"  Content="{Translate MessageL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="90,100,8,0" Name="Message"  Text="{Binding Model.Message}" VerticalAlignment="Top" Tag="SxText" Style="{StaticResource P2TextBoxStyle}" />

        
        
        <Label Grid.Row="2" Height="23" Margin="1,160,0,0" Name="LogDateStartL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate LogDateStartL}" />
        <DatePicker Grid.Row="2" Height="23" Margin="90,160,8,0" Name="LogDateStart" SelectedDate="{Binding LogDateStart}" VerticalAlignment="Top" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />

        <Label Grid.Row="2" Height="23" Margin="1,190,0,0" Name="LogDateEndL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate LogDateEndL}" />
        <DatePicker Grid.Row="2" Height="23" Margin="90,190,8,0" Name="LogDateEnd" SelectedDate="{Binding LogDateEnd}" VerticalAlignment="Top" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />





    </Grid>
</UserControl>
